class UserAddressModel {
  int id;
  String tag;
  String name;
  int gender;
  String phone;
  String province;
  String city;
  String district;
  String address;
  bool isDefault;
  int order;

  UserAddressModel({
    required this.id,
    required this.name,
    required this.phone,
    required this.province,
    required this.city,
    required this.district,
    required this.address,
    this.gender = 1,
    this.tag = '',
    this.isDefault = false,
    this.order = 0,
  });

  @override
  bool operator ==(Object other) =>
      identical(this, other) || other is UserAddressModel && runtimeType == other.runtimeType && id == other.id;

  @override
  int get hashCode => id.hashCode;

  @override
  String toString() {
    return 'UserAddressModel{id: $id, tag: $tag, name: $name, gender: $gender, phone: $phone, province: $province, city: $city, district: $district, address: $address, isDefault: $isDefault, order: $order}';
  }
}
